package oops.polymorphism;

public class HelloWorldImpl implements HelloWorld{


	public void sayHello() {
		System.out.println("Hello");

	}
	
	

	@Override
	public void sayHello(String name) {
		sayHello();
		System.out.println("Hello :" + name);
		
	}
	

	public void sayHello(int hour) {
		if(hour <12){
			System.out.println("Hello :, Good morning");
		}else{
			System.out.println("Hello :, Good afternoon");
		}
		
	}


	public void sayHello(String name, int hour) {
		if(hour <12){
			System.out.println("Hello :" + name +", Good morning");
		}else{
			System.out.println("Hello :" + name +", Good afternoon");
		}
		
	}


}
